module.exports = {
  devServer: {
    // host: '0.0.0.0',
    // public: '172.20.3.3:8080',
    port: '8080',
    // port: 8080,
    host: 'localhost',
    proxy: {
      '/api': {
        target: 'http://mall-pre.springboot.cn', // 目标
        changeOrigin: true,
        pathRewrite: {
          '/api': ''
        }
      }
    }
  },
  chainWebpack: config => {
    config.plugins.delete('prefetch')
  }
}
